//
// Created by lfm on 2025/3/2.
//
#include <iostream>
#include <string>
using namespace  std;
class Building;
class GoodGay
{
public:

    GoodGay();
    void visit();//
    void visit2();//
    Building * building;
};
class Building
{
    friend void GoodGay::visit();
public:
    Building();
public:
    string m_SettingRoom;
private:
    string m_BedRoom;
};
Building::Building()
{
    m_SettingRoom = "客厅";
    m_BedRoom = "卧室";
}
GoodGay::GoodGay()
{
    building = new Building;
}
void GoodGay::visit()
{
    cout << building->m_SettingRoom << endl;
    cout << building->m_BedRoom << endl;
}
void GoodGay::visit2()
{
    cout << building->m_SettingRoom << endl;
}
void test01()
{
    GoodGay gg;
    gg.visit();
}
int main()
{
    visit();
    system("pause");
    return 0;
}